package com.meng.message.domain.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author Xu Meng
 * @since 2021-01-14
 */
@Data
@EqualsAndHashCode
public class SysMenuVO implements Serializable {

    private static final long serialVersionUID = -74701962993774763L;

    @ApiModelProperty("菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("菜单权限标识")
    private String perms;

    @ApiModelProperty("前端跳转URL")
    private String path;

    @ApiModelProperty("菜单组件")
    private String component;

    @ApiModelProperty("父菜单ID")
    private Integer parentId;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("菜单类型 （类型   0：目录   1：菜单   2：按钮）")
    private String type;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除标记(0--正常 1--删除)")
    private String delFlag;

    @ApiModelProperty("子节点")
    private List<SysMenuVO> children;
}
